package com.lhgray.sglhome.data.network.service

import com.lhgray.sglhome.data.network.api.HomeServer
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object HomeNetworkModule {

    @Provides
    @Singleton
    fun provideHomeServer(retrofit: Retrofit): HomeServer {
        return retrofit.create(HomeServer::class.java)
    }


}